# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo10
# Description:
# Author:       98745
# Date:         2019/3/2
#-------------------------------------------------------------------------------

def a(x,y,z):
    return x+y+z
print(a(1,2,3))
l=[1,2,3]
print(a(*l))
d={'x':100,'y':200,'z':12}
print(a(**d))
def a1(*n):
    r=0
    for i in n:
        r += i
    return r
print(a1(1,2,3,4,5))
print(a1(*l))
def a2(**n):
    r=0
    for i in n.items():
        r+=i[1]
    return r
print(a2(**d))
def a3(n):
    r=0
    for i in n.items():
        r+=i[1]
        return r
print(a3(d))